package com.sirun.ble.enums;

/**
 * @author : hzw
 */
public enum BleEnum {

    /** 通用 */
    BLE_COMMON_SUCCESS(1000, "成功"),
    BLE_COMMON_NET(1001, "网络异常"),
    BLE_ERROR_INIT(1002, "初始化异常"),
    BLE_CONTEXT_NOT_EXIST(1003, "上下文不存在"),
    BLE_COMMON_NOT_SUPPORT(1004, "设备不支持蓝牙"),
    BLE_COMMON_SYSTEM_CLOSED(1005, "系统蓝牙已关闭"),
    BLE_COMMON_GPS_CLOSED(1006, "GPS位置开关已关闭"),
    BLE_CONNECT_FAIL_DISTANCE(1007, "连接失败，设备连接距离过远或设备已被其他设备连接"),
    BLE_COMMON_VIN_NONE_ERROR(1008, "VIN不可为空"),
    BLE_COMMON_PERMISSION_STORAGE_NONE(1009, "无读写权限"),
    BLE_COMMON_PERMISSION_LOCATION_NONE(1010, "无位置权限"),
    BLE_COMMON_PERMISSION_BLUETOOTH_NONE(1011, "无蓝牙权限"),
    BLE_COMMON_SERVICE_BLE_OPEN_FAIL(1012, "蓝牙服务开启失败"),
    BLE_INIT_EMPTY_APPID(1013, "appId不可为空"),
    BLE_INIT_EMPTY_LISENCE(1014, "lisence不可为空"),
    BLE_RENTAL_NET_ERROR(1015, "需进行在线用车，当前网络环境异常"),
    BLE_RENTAL_SEC_KEY_ERROR(1016, "登录验证失败"),
    BLE_BIND_DEVICE_NONE_EXIST_ERROR(1017, "蓝牙设备获取异常"),
    BLE_SEC_NONE_EXIST_ERROR(1018, "安全环境异常"),
    BLE_CERTIFICATE_GET_ERROR(1019, "证书获取异常"),
    BLE_CONNECT_SUCCESS(1020, "连接成功"),
    BLE_CONNECT_AUTH_SUCCESS(1021, "已连接并鉴权成功"),
    BLE_CONNECT_AUTH_FAIL(1022, "连接失败，鉴权未通过"),
    BLE_CONNECT_FAIL(1023, "连接失败"),
    BLE_CONNECT_FAIL_FREQUENTLY(1024, "连接失败，连接过于频繁，请稍后尝试"),
    BLE_CONNECT_NONE(1025, "蓝牙未连接"),
    BLE_CONNECT_CLOSE(1026, "蓝牙连接中断"),
    BLE_CONNECT_NONE_SEARCH_DEVICE(1027, "未搜索到对应蓝牙设备"),
    BLE_CONNECT_NO_SERVICE(1028, "连接失败，未查找到相关服务"),
    BLE_CONNECT_NOTIFY_FAIL(1029, "连接失败，通知服务无法开启"),
    BLE_CONTROL_FAIL(1030, "控车失败"),
    BLE_CONTROL_SYSTEM_CLOSED(1031, "系统蓝牙已关闭，控制结果未知"),
    BLE_TOKEN_EXIST_NONE(1032, "蓝牙登录验证失败，请在线登录"),
    BLE_TOKEN_TIMEOUT(1033, "蓝牙登录凭证失效，请重新在线登录"),
    BLE_LOGIN_ERROR(1034, "登录失败，平台返回信息为空"),
    BLE_OPERATE_FAIL_BY_UNLOGIN(1035, "请先进行登录"),
    BLE_PAIR_ERROR(1036, "配对信息过期！请前往系统设置-蓝牙，忽略已配对的蓝牙设备！"),
    BLE_CONNECT_FAIL_LATER_RETRY(1037, "连接失败，请稍后尝试");

    public int code;
    public String desc;

    BleEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }


}
